package com.gwnet.rider.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwnet.common.core.domain.ResponseResult;
import com.gwnet.rider.domain.PlatformWalletLog;
import com.gwnet.rider.domain.bo.PlatformWalletLogPageBO;
import com.gwnet.rider.service.PlatformWalletLogService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 收支记录表 前端控制器
 * </p>
 *
 * @author WangLiang
 * @since 2024-08-06
 */
@RestController
@RequestMapping("/platformWalletLog")
public class PlatformWalletLogController {

    private final PlatformWalletLogService walletLogService;


    public PlatformWalletLogController(PlatformWalletLogService walletLogService) {
        this.walletLogService = walletLogService;
    }

    /**
     * 分页查询列表
     * @param pageBO
     * @return
     */
    @PostMapping("/page")
    public ResponseResult page(@RequestBody PlatformWalletLogPageBO pageBO){
        IPage<PlatformWalletLog> pageResult = walletLogService.page(pageBO);
        return ResponseResult.success(pageResult);
    }


}

